<form method="post" class="form-horizontal">
    <fieldset>
        <legend><?php echo isset($data['title']) ? 'Sửa' : 'Thêm mới';?> nhóm tin</legend>
		<?php if (isset($error)):?>
        <div class="alert alert-error"><?php echo $error;?></div>
        <?php else :?>
        <?php if (isset($msg)):?><div class="alert alert-success"><?php echo $msg;?></div>					<?php endif;?>
        <?php endif;?>
    
        
        
        <div class="control-group">
            <label class="control-label" for="title">Tiêu đề nhóm tin tức</label>
            <div class="controls">
                <input type="text" class="input-xxlarge" name="title" id="title" value="<?php echo @$data['title'];?>" />
            </div>
        </div>

        <div class="control-group">
            <div class="controls">
                <input type="submit" class="btn btn-primary" value="<?php echo isset($data) ? 'Lưu lại' : 'Thêm mới';?>" />
            <input type="reset" class="btn" value="Hủy bỏ" />
            </div>
        </div>
    </fieldset>
</form>